/*
 * TCSS 422 Web Spider Project
 * Group Money: Al McKenzie, Michael Pitts, Taylor Zielske
 */
package test;

import java.util.HashSet;
import java.util.Set;

import model.URLInputCooker;

/**
 * An extension of the URLInputCooker, used just for testing purposes.
 * 
 * @author Michael Pitts
 * @version Oct 19, 2011
 */
public class MyTestCooker extends URLInputCooker {
	
	/**
	 * Stores the urls added via addURL().
	 */
	private final Set<String> my_urls = new HashSet<String>();
	
	/**
	 * Stores the domains added via addDomain().
	 */
	private final Set<String> my_domains = new HashSet<String>();
	
	/**
	 * Creates a new TestCooker.
	 */
	public MyTestCooker() {
		
	}
	
	/**
	 * {@inheritDoc}
	 */
	public void addURL(final String the_url) {
		my_urls.add(the_url);
	}

	/**
	 * {@inheritDoc}
	 */
	public void addDomain(final String the_domain_url) {
		my_domains.add(the_domain_url);
	}
	
	/**
	 * Gets the urls added to this cooker via the addURL() method.
	 * @return a set of url strings that have been added to this cooker.
	 */
	public Set<String> getURLs() {
		return my_urls;
	}
	
	/**
	 * Gets the domains added to this cooker via the addDomain() method.
	 * @return a set of domain strings that have been added to this cooker.
	 */
	public Set<String> getDomains() {
		return my_domains;
	}

}
